package com.example.demo_1106.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName order_info
 */
@TableName(value ="order_info")
@Data
public class OrderInfo implements Serializable {
    /**
     * 
     */
    private String orderCode;

    /**
     * 
     */
    private String orderContent;

    /**
     * 
     */
    private Date orderStartTime;

    /**
     * 
     */
    private Date orderEndTime;

    /**
     * 
     */
    private String orderStartPoint;

    /**
     * 
     */
    private String orderEndPoint;

    /**
     * 
     */
    private String orderEnterpriseCode;

    /**
     * 
     */
    private String orderCost;

    /**
     * 
     */
    private String orderState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderInfo other = (OrderInfo) that;
        return (this.getOrderCode() == null ? other.getOrderCode() == null : this.getOrderCode().equals(other.getOrderCode()))
            && (this.getOrderContent() == null ? other.getOrderContent() == null : this.getOrderContent().equals(other.getOrderContent()))
            && (this.getOrderStartTime() == null ? other.getOrderStartTime() == null : this.getOrderStartTime().equals(other.getOrderStartTime()))
            && (this.getOrderEndTime() == null ? other.getOrderEndTime() == null : this.getOrderEndTime().equals(other.getOrderEndTime()))
            && (this.getOrderStartPoint() == null ? other.getOrderStartPoint() == null : this.getOrderStartPoint().equals(other.getOrderStartPoint()))
            && (this.getOrderEndPoint() == null ? other.getOrderEndPoint() == null : this.getOrderEndPoint().equals(other.getOrderEndPoint()))
            && (this.getOrderEnterpriseCode() == null ? other.getOrderEnterpriseCode() == null : this.getOrderEnterpriseCode().equals(other.getOrderEnterpriseCode()))
            && (this.getOrderCost() == null ? other.getOrderCost() == null : this.getOrderCost().equals(other.getOrderCost()))
            && (this.getOrderState() == null ? other.getOrderState() == null : this.getOrderState().equals(other.getOrderState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderCode() == null) ? 0 : getOrderCode().hashCode());
        result = prime * result + ((getOrderContent() == null) ? 0 : getOrderContent().hashCode());
        result = prime * result + ((getOrderStartTime() == null) ? 0 : getOrderStartTime().hashCode());
        result = prime * result + ((getOrderEndTime() == null) ? 0 : getOrderEndTime().hashCode());
        result = prime * result + ((getOrderStartPoint() == null) ? 0 : getOrderStartPoint().hashCode());
        result = prime * result + ((getOrderEndPoint() == null) ? 0 : getOrderEndPoint().hashCode());
        result = prime * result + ((getOrderEnterpriseCode() == null) ? 0 : getOrderEnterpriseCode().hashCode());
        result = prime * result + ((getOrderCost() == null) ? 0 : getOrderCost().hashCode());
        result = prime * result + ((getOrderState() == null) ? 0 : getOrderState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderCode=").append(orderCode);
        sb.append(", orderContent=").append(orderContent);
        sb.append(", orderStartTime=").append(orderStartTime);
        sb.append(", orderEndTime=").append(orderEndTime);
        sb.append(", orderStartPoint=").append(orderStartPoint);
        sb.append(", orderEndPoint=").append(orderEndPoint);
        sb.append(", orderEnterpriseCode=").append(orderEnterpriseCode);
        sb.append(", orderCost=").append(orderCost);
        sb.append(", orderState=").append(orderState);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}